package com.niguang.labour.admin.entity;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 
 * @since 2018-06-10
 */
@TableName("work_sub_user")
public class WorkSubUser extends Model<WorkSubUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	private Long id;
    /**
     * 订单ID
     */
	@TableField("sub_id")
	private Long subId;
    /**
     * 个人发布找工作id
     */
	@TableField("personal_release_id")
	private Long personalReleaseId;
    /**
     * 工地ID
     */
	@TableField("site_id")
	private Long siteId;
    /**
     * 个人发布找工作用户id
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 订单状态 1-未完成 2-已完成 3-已关闭
     */
	@TableField("sub_state")
	private Integer subState;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 删除标识 0-未删除 1-已删除
     */
	@TableField("del_flag")
	private Integer delFlag;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSubId() {
		return subId;
	}

	public void setSubId(Long subId) {
		this.subId = subId;
	}

	public Long getPersonalReleaseId() {
		return personalReleaseId;
	}

	public void setPersonalReleaseId(Long personalReleaseId) {
		this.personalReleaseId = personalReleaseId;
	}

	public Long getSiteId() {
		return siteId;
	}

	public void setSiteId(Long siteId) {
		this.siteId = siteId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getSubState() {
		return subState;
	}

	public void setSubState(Integer subState) {
		this.subState = subState;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}

	public static final String ID = "id";

	public static final String SUB_ID = "sub_id";

	public static final String PERSONAL_RELEASE_ID = "personal_release_id";

	public static final String SITE_ID = "site_id";

	public static final String USER_ID = "user_id";

	public static final String SUB_STATE = "sub_state";

	public static final String CREATE_TIME = "create_time";

	public static final String DEL_FLAG = "del_flag";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "WorkSubUser{" +
			"id=" + id +
			", subId=" + subId +
			", personalReleaseId=" + personalReleaseId +
			", siteId=" + siteId +
			", userId=" + userId +
			", subState=" + subState +
			", createTime=" + createTime +
			", delFlag=" + delFlag +
			"}";
	}
}
